import request from '@/utils/request.js'

const orderApi = {
    list(orderQuery) {
        return request.get('/order/list', {params: orderQuery})
    },
    deleteById(id) {
        return request.delete(`/order/deleteById/${id}`)
    },
    deleteAll(ids) {
        return request.delete(`/order/deleteAll/${ids}`)
    },
    add(order) {
        return request.post(`/order/add`, order)
    },
    selectById(id) {
        return request.get(`/order/selectById/${id}`)
    },
    update(order) {
        return request.put(`/order/update`, order)
    }
}

export default orderApi